package com.DataFactory.TaskManagement.mapper;

import com.DataFactory.TaskManagement.model.bo.TaskBO;
import com.DataFactory.TaskManagement.model.entity.Task;
import com.DataFactory.TaskManagement.model.query.TaskQuery;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 40434
* @description 针对表【task】的数据库操作Mapper
* @createDate 2024-03-28 21:04:52
* @Entity com.DataFactory.TaskManagement.model.entity.Task
*/
@Mapper
public interface TaskMapper extends BaseMapper<Task> {


    /**
     * 获取任务分页列表
     * @param page
     * @param queryParams
     * @return
     */
    Page<TaskBO> getTaskPage(Page<TaskBO> page, @Param("queryParams") TaskQuery queryParams);

    /**
     * 获取任务表单
     * @param taskId
     * @return
     */
    TaskBO getTaskForm(@Param("id") Integer taskId);
}
